﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001421 RID: 5153
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TrainPartyUnlockBuildAreaScRsp : IMessage<TrainPartyUnlockBuildAreaScRsp>, IMessage, IEquatable<TrainPartyUnlockBuildAreaScRsp>, IDeepCloneable<TrainPartyUnlockBuildAreaScRsp>, IBufferMessage
	{
		// Token: 0x170040FA RID: 16634
		// (get) Token: 0x0600E6B9 RID: 59065 RVA: 0x0026924D File Offset: 0x0026744D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TrainPartyUnlockBuildAreaScRsp> Parser
		{
			get
			{
				return TrainPartyUnlockBuildAreaScRsp._parser;
			}
		}

		// Token: 0x170040FB RID: 16635
		// (get) Token: 0x0600E6BA RID: 59066 RVA: 0x00269254 File Offset: 0x00267454
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TrainPartyUnlockBuildAreaScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170040FC RID: 16636
		// (get) Token: 0x0600E6BB RID: 59067 RVA: 0x00269266 File Offset: 0x00267466
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TrainPartyUnlockBuildAreaScRsp.Descriptor;
			}
		}

		// Token: 0x0600E6BC RID: 59068 RVA: 0x0026926D File Offset: 0x0026746D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyUnlockBuildAreaScRsp()
		{
		}

		// Token: 0x0600E6BD RID: 59069 RVA: 0x00269275 File Offset: 0x00267475
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyUnlockBuildAreaScRsp(TrainPartyUnlockBuildAreaScRsp other) : this()
		{
			this.areaId_ = other.areaId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E6BE RID: 59070 RVA: 0x002692A6 File Offset: 0x002674A6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TrainPartyUnlockBuildAreaScRsp Clone()
		{
			return new TrainPartyUnlockBuildAreaScRsp(this);
		}

		// Token: 0x170040FD RID: 16637
		// (get) Token: 0x0600E6BF RID: 59071 RVA: 0x002692AE File Offset: 0x002674AE
		// (set) Token: 0x0600E6C0 RID: 59072 RVA: 0x002692B6 File Offset: 0x002674B6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AreaId
		{
			get
			{
				return this.areaId_;
			}
			set
			{
				this.areaId_ = value;
			}
		}

		// Token: 0x170040FE RID: 16638
		// (get) Token: 0x0600E6C1 RID: 59073 RVA: 0x002692BF File Offset: 0x002674BF
		// (set) Token: 0x0600E6C2 RID: 59074 RVA: 0x002692C7 File Offset: 0x002674C7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600E6C3 RID: 59075 RVA: 0x002692D0 File Offset: 0x002674D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TrainPartyUnlockBuildAreaScRsp);
		}

		// Token: 0x0600E6C4 RID: 59076 RVA: 0x002692DE File Offset: 0x002674DE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TrainPartyUnlockBuildAreaScRsp other)
		{
			return other != null && (other == this || (this.AreaId == other.AreaId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E6C5 RID: 59077 RVA: 0x0026931C File Offset: 0x0026751C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AreaId != 0U)
			{
				num ^= this.AreaId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E6C6 RID: 59078 RVA: 0x00269374 File Offset: 0x00267574
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E6C7 RID: 59079 RVA: 0x0026937C File Offset: 0x0026757C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E6C8 RID: 59080 RVA: 0x00269388 File Offset: 0x00267588
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AreaId != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.AreaId);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E6C9 RID: 59081 RVA: 0x002693E4 File Offset: 0x002675E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AreaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AreaId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E6CA RID: 59082 RVA: 0x0026943C File Offset: 0x0026763C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TrainPartyUnlockBuildAreaScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AreaId != 0U)
			{
				this.AreaId = other.AreaId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E6CB RID: 59083 RVA: 0x0026948C File Offset: 0x0026768C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E6CC RID: 59084 RVA: 0x00269498 File Offset: 0x00267698
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 48U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.AreaId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04005B4D RID: 23373
		private static readonly MessageParser<TrainPartyUnlockBuildAreaScRsp> _parser = new MessageParser<TrainPartyUnlockBuildAreaScRsp>(() => new TrainPartyUnlockBuildAreaScRsp());

		// Token: 0x04005B4E RID: 23374
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005B4F RID: 23375
		public const int AreaIdFieldNumber = 6;

		// Token: 0x04005B50 RID: 23376
		private uint areaId_;

		// Token: 0x04005B51 RID: 23377
		public const int RetcodeFieldNumber = 12;

		// Token: 0x04005B52 RID: 23378
		private uint retcode_;
	}
}
